package com.example.redisson;

public class CustomException extends Exception {
    private static final long serialVersionUID = 1L;
    private String code;
    private String msg;

    public CustomException() {
    }

    public CustomException(String code, String msg) {
        super(msg);
        this.code = code;
    }

    public CustomException(String message, Throwable cause) {
        super(message, cause);
    }

    public CustomException(String message) {
        super(message);
    }

    public CustomException(Throwable cause) {
        super(cause);
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
